//
//  HYOUBigGift.m
//  BestGift
//
//  Created by 温晓宇 on 16/1/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HYOUBigGift.h"
#import "HYOUGift.h"
@implementation HYOUBigGift
-(void)dealloc{
    [_subcategories release];
    [_name release];
    [super dealloc];
}
- (instancetype)init{
    self = [super init];
    if (self) {
        
        
    }
    return self;
}

- (void)setSubcategories:(NSMutableArray *)subcategories{
    
    if (_subcategories != subcategories) {
        [_subcategories release];
        _subcategories = [subcategories retain];
    }
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in subcategories) {
        HYOUGift *model = [[HYOUGift alloc]init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
        
    }
    _subcategories = [NSMutableArray arrayWithArray:array];
}
@end
